package com.zxjbyte.yiyi.module.system.domain.param.dict;

import com.zxjbyte.yiyi.framework.common.constant.Constant;
import com.zxjbyte.yiyi.framework.common.domain.api.PageQuery;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @Author zhangxingjia
 * @Date 2024/2/22 17:12
 * @Version: 1.0
 */
@Data
@Schema(description = "字典数据列表请求结构体")
public class DictItemListParam extends PageQuery {

    // 字典id
    @Parameter(description = "字典id")
    @NotNull(message = "dictId cannot be null")
    private Long dictId;

    // 字典项标签
    @Parameter(description = "字典标签")
    private String itemLabel;

    // 状态：0-启用，1-禁用
    @Parameter(description = "状态：0-启用，1-禁用")
    private Integer status;

    @Parameter(description = "创建开始时间")
    @DateTimeFormat(pattern = Constant.PATTERN_DATETIME)
    private Date startTime;

    @Parameter(description = "创建结束时间")
    @DateTimeFormat(pattern = Constant.PATTERN_DATETIME)
    private Date endTime;
}
